package com.itany.boot.service;

import com.github.pagehelper.PageInfo;
import com.itany.boot.entity.GoldPoints;
import com.itany.boot.entity.User;
import com.itany.boot.exception.RequestParameterErrorException;

/**
 * @author 黄衡熙
 * @version 1.0
 */
public interface GoldPointsService {
    /**
     * 查询当前用户的积分
     * @param USerId
     * @param pageNo
     * @param pageSize
     * @return
     */
    PageInfo<GoldPoints> findPage(String USerId, String pageNo, String pageSize);

    /**
     * 展示积分金币记录
     * @param UserId
     * @return
     * @throws RequestParameterErrorException
     */
    User showNumber(String UserId) throws RequestParameterErrorException;

    /**
     * 积分兑换金币
     * @param UserId
     * @param point
     */
    void buyGold(String UserId,String point) throws RequestParameterErrorException;
}
